#ifndef HTTPREADER_H
#define HTTPREADER_H

#include <QWidget>
#include <QtNetwork>
#include <QFile>

class HttpReader : public QWidget
{
Q_OBJECT
public:
    HttpReader(QString site, int port, QString request, QString file);
private slots:
    void read();
    void connected();
    void close();
private:
    QFile * f;
    QTcpSocket * socket;
    QString site;
    QString request;
};

#endif // HTTPREADER_H
